/*
Copyright [2012] [Maria Eugenia Malagamba]
Copyright [2012] [Leandro Pellegrino]
Copyright [2012] [Julia Gambuzzi]
Copyright [2012] [Ignacio Capodanno]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

#pragma once
#include <string>
#include <vector>
#include <iostream>
#include <WinSock2.h>
#include <Windows.h>
#include "../Entidades/Partida.h"
#include <tchar.h> 
#include <stdio.h>
#include <strsafe.h>
#include "Boton.h"
#include "Barra.h"
#include "SDL.h"
#pragma comment(lib, "User32.lib")

//Para buscar en el directorio
#ifndef WIN32
  #define WIN32
#endif

using namespace std;

class MenuOpciones
{
private:
	string convertirAString(TCHAR* tchar);
	TCHAR* convertirATCHAR(string aConvertir);
	string pathEscenarios;
	unsigned int maxOpciones;
	vector<Boton*>* boxes;
	SDL_Rect posicion;
	SDL_Surface* fondo;
	Barra* barra;
	unsigned int inicio;
	unsigned int maximoEscenarios;
	string opcionActual;
	void seleccionarOpcion(int x, int y);

public:
	MenuOpciones(int x, int y);
	void opciones();
	vector<string>* obtenerEscenarios();
	void mostrar(SDL_Surface* ventana);
	string getOpcionActual();
	void crear();
	void actuar(int x,int y);
	bool fuiClickeado(int x, int y);
	~MenuOpciones(void);
};
